/********************************************************************
  Copyright by PCI, 2002-10-08
  File Name: db_ppm_prod_quantity.cxx
  Created Date: 2002-10-08 
  Author: Machine
  Version: 1.0 
  Last Version Date: 
  Version Date:
*******************************************************************/
/********************************************************************
  Copyright by PCI, 2002-10-08
  Class Name: CTable_PPM_PROD_QUANTITY
  Created Date: 2002-10-08 
  Author: Machine
  Defined File: db_ppm_prod_quantity.hxx
  Last Version Date: 
  Version Date:
*******************************************************************/
#include "app97_global.h" 
#include "table_ppm.h"

CTable_PPM_PROD_QUANTITY::CTable_PPM_PROD_QUANTITY( )
 :NPCRecordSet( )
{
  setTableName( "PPM_PROD_QUANTITY" );
  prepareTable();
  prepareQuery();
 
  ID.setField( "ID", DATA_DOUBLE, 22, 1 );
  makeTableItem( ID );
  makeKeyItem( ID ); 
  NAME.setField( "NAME", DATA_CHAR, 512, 0 );
  makeTableItem( NAME );

  VALUE.setField( "VALUE", DATA_CHAR, 1000, 0 );

  makeTableItem( VALUE );
  DESCRI.setField( "DESCRI", DATA_CHAR, 2000, 0 );
  makeTableItem( DESCRI );
  APP_ID.setField( "APP_ID", DATA_CHAR, 20, 0 );
  makeTableItem( APP_ID );
  STATE.setField( "STATE", DATA_CHAR, 6, 0 );
  makeTableItem( STATE );
  TYPE.setField( "TYPE", DATA_CHAR, 6, 0 );
  makeTableItem( TYPE );
  CREATE_DATE.setField( "CREATE_DATE", DATA_DATETIME, 7, 0 );
  makeTableItem( CREATE_DATE );
}


CTable_PPM_PROD_QUANTITY::CTable_PPM_PROD_QUANTITY( NPConnection& pcldb )
 :NPCRecordSet( pcldb )
{
  setTableName( "PPM_PROD_QUANTITY" );
  prepareTable();
  prepareQuery();
 
  ID.setField( "ID", DATA_DOUBLE, 22, 1 );
  makeTableItem( ID );
  makeKeyItem( ID ); 
  NAME.setField( "NAME", DATA_CHAR, 512, 0 );
  makeTableItem( NAME );

  VALUE.setField( "VALUE", DATA_CHAR, 1000, 0 );

  makeTableItem( VALUE );
  DESCRI.setField( "DESCRI", DATA_CHAR, 2000, 0 );
  makeTableItem( DESCRI );
  APP_ID.setField( "APP_ID", DATA_CHAR, 20, 0 );
  makeTableItem( APP_ID );
  STATE.setField( "STATE", DATA_CHAR, 6, 0 );
  makeTableItem( STATE );
  TYPE.setField( "TYPE", DATA_CHAR, 6, 0 );
  makeTableItem( TYPE );
  CREATE_DATE.setField( "CREATE_DATE", DATA_DATETIME, 7, 0 );
  makeTableItem( CREATE_DATE );
}

CTable_PPM_PROD_QUANTITY::~CTable_PPM_PROD_QUANTITY( )
{
    close();
}

